package com.yc.service.impl;

import com.yc.entities.BloodSugarDepartment;
import com.yc.mapper.BloodSugarDepartmentMapper;
import com.yc.service.BloodSugarDepartmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 科室表 服务实现类
 * </p>
 *
 * @author kuakha
 * @since 2021-04-07
 */
@Service
public class BloodSugarDepartmentServiceImpl extends ServiceImpl<BloodSugarDepartmentMapper, BloodSugarDepartment> implements BloodSugarDepartmentService {

    @Override
    public List<BloodSugarDepartment> getDepartmentByPerId(Integer perId,Integer deanId,Integer currentLoginUserId) {
        return this.baseMapper.getDepartmentByPerId(perId,deanId,currentLoginUserId);
    }

    @Override
    public List<BloodSugarDepartment> getDepartmentByPerIdAndDocId(String perId, String deanId,String doctorId) {
        return this.baseMapper.getDepartmentByPerIdAndDocId(perId,deanId,doctorId);
    }

    @Override
    public int saveDepartment(BloodSugarDepartment bloodSugarDepartment) {
        return this.baseMapper.saveDepartment(bloodSugarDepartment);
    }
}
